package com.mgy.im.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * xxx
 *
 * @author maguoyong
 * @date 2020/6/14
 */
@Controller
public class IndexController {

    @RequestMapping("index")
    public String index(Model model) {
        return "index";
    }

    // 跳转到交谈聊天页面
    @RequestMapping(value = "chat", method = RequestMethod.GET)
    public String talk(String token, Model model) {
        model.addAttribute("token", "aaaaaaaa");
        return "chat";
    }
}
